package com.novax.ex.ai.http;

import cn.hutool.core.collection.ListUtil;
import lombok.Data;

import java.util.List;

@Data
public class Message {

    private String content;

    private String role;

    public static Message builder() {
        return new Message();
    }

    public Message content(String content) {
        this.content = content;
        return this;
    }

    public Message role(String role) {
        this.role = role;
        return this;
    }

    public Message build() {
        return this;
    }

    public static Message getDefaultInstance(String question) {
        return Message.builder().role("system").content(question);
    }

    public static List<Message> getDeaultMessageList(String question) {
        return ListUtil.of(getDefaultInstance(question));
    }


}
